﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:RDLCReport="clr-namespace:DSoft.RDLCReport"
        x:Class="DSoft.RDLC.RDLCPrinterDialog"        
         Height="458" Width="403.188" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False" Background="WhiteSmoke">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="./Style/BrushDictionary.xaml"/>
                <ResourceDictionary Source="./Style/ButtonDictionary.xaml"/>
                <ResourceDictionary Source="./Style/LabelDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <!--
    CREDIT : 2013-2014 Derek Tremblay (abbaye), Martin Savard
    https://rdlcprinter.codeplex.com/
    -->

    <Grid>

        <Button x:Name="cmdOK" Margin="0,0,110,10" Height="40" Click="OK_Click" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="98" IsDefault="True">
            <StackPanel Orientation="Horizontal">
                <Image Source="Resources/ok-apply.ico" RenderOptions.BitmapScalingMode="HighQuality"/>
                <Label VerticalAlignment="Center" Content="Print"/>
            </StackPanel>
        </Button>

        <Button x:Name="cmdAnnuler" Margin="0,0,10,10" Click="Annuler_Click" HorizontalAlignment="Right" Width="95" Height="40" VerticalAlignment="Bottom" IsCancel="True">
            <StackPanel Orientation="Horizontal">
                <Image Margin="0,0,10,0" Source="Resources/System-Delete.ico" RenderOptions.BitmapScalingMode="HighQuality"/>
                <ContentControl VerticalAlignment="Center" Content="Close"/>
            </StackPanel>
        </Button>
        <Grid Margin="10,10,10,0" Height="138" VerticalAlignment="Top" Background="{StaticResource LightGradientPanelBrush}">
            <Label Content="Printer settings" FontWeight="Bold" Height="26" Style="{StaticResource TitleLabelStyle}" VerticalAlignment="Top"/>
            <Label x:Name="lblImprimanteNom" Content="Printer name" FontSize="12" Margin="10,41,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
            <ComboBox x:Name="cboImprimanteNom"  SelectionChanged="cboImprimanetNom_SelectionChanged" Margin="108,41,10,0" Height="26" VerticalAlignment="Top" />
            <Label  Content="Status" Margin="10,72,0,0" HorizontalAlignment="Left" VerticalAlignment="Top"/>
            <Image x:Name="ReadyImage" Margin="108,75,0,0" HorizontalAlignment="Left" Width="20" Height="20" VerticalAlignment="Top" />
            <Label x:Name="lblImprimanteStatus" Content="" FontSize="12" Margin="133,72,0,0" HorizontalAlignment="Left" Width="234" Height="26" VerticalAlignment="Top" />
            <Label  Content="Site" FontSize="12" Margin="10,103,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" />
            <Label x:Name="lblEmplacementImprimante" Content="" FontSize="12" Margin="108,103,0,0" Height="26" VerticalAlignment="Top" HorizontalAlignment="Left" Width="259"/>
        </Grid>
        <Grid Margin="10,153,10,0" Background="{StaticResource LightGradientPanelBrush}" Height="86" VerticalAlignment="Top">
            <Label Content="Copy settings" FontWeight="Bold" Height="26" Style="{StaticResource TitleLabelStyle}" Margin="1,0,0,0" VerticalAlignment="Top"/>
            <Label  Content="Number of copy" FontSize="12" Margin="10,42,0,0" HorizontalAlignment="Left"  VerticalAlignment="Top" />
            
            <RDLCReport:LightIntergerSpinner x:Name="NumberOfCopySpinner" HorizontalAlignment="Left" Margin="125,38,0,0" VerticalAlignment="Top" Width="54" Height="37" Minimum="1" Maximum="500" Value="1"/>
        </Grid>
        <Grid Margin="11,244,9,0" Background="{StaticResource LightGradientPanelBrush}" Height="120" VerticalAlignment="Top">
            <Label Content="Page range settings" FontWeight="Bold" Height="26" Style="{StaticResource TitleLabelStyle}" VerticalAlignment="Top"/>
            <Label  Content="Page range}" FontSize="12" Margin="10,82,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <Label Content="All page" Margin="10,38,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <StackPanel x:Name="PageChoiceStackPanel" Margin="125,79,0,0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Top" IsEnabled="False">
                
                <RDLCReport:LightIntergerSpinner x:Name="FirstPageSpinner" HorizontalAlignment="Left" Width="54" Height="32" Minimum="1" Maximum="10" Value="1"/>
                <Label  Content="To page" FontSize="12" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Height="32" VerticalAlignment="Top" HorizontalAlignment="Left" Width="65"/>                
                <RDLCReport:LightIntergerSpinner x:Name="LastPageSpinner" HorizontalAlignment="Left" Width="54" Height="32" Minimum="1" Maximum="10" Value="1"/>
            </StackPanel>
            <ToggleButton x:Name="cmdAllPageButton" Margin="125,31,0,0" Click="cmdAllPageButton_Click" IsChecked="True" HorizontalAlignment="Left" Width="53" Height="40" VerticalAlignment="Top">
                <Image Source="Resources/AllPage.ico" Height="30" Width="30" Stretch="Uniform" ToolTip="All Page" RenderOptions.BitmapScalingMode="HighQuality"/>
            </ToggleButton>
        </Grid>
    </Grid>

</Window>
